$OpenBSD: patch-modules_sipcapture_sipcapture_c,v 1.4 2015/11/20 10:09:52 sthen Exp $
--- modules/sipcapture/sipcapture.c.orig	Fri Oct  2 15:35:19 2015
+++ modules/sipcapture/sipcapture.c	Wed Oct 21 01:03:18 2015
@@ -47,6 +47,7 @@
 #ifndef __USE_BSD
 #define __USE_BSD  /* on linux use bsd version of iphdr (more portable) */
 #endif /* __USE_BSD */
+#include <netinet/in_systm.h>
 #include <netinet/ip.h>
 #define __FAVOR_BSD /* on linux use bsd version of udphdr (more portable) */
 #include <netinet/udp.h>
@@ -1085,7 +1086,7 @@ static int sip_capture_store(struct _sipcapture_object
 	db_key_t db_keys[NR_KEYS];
 	db_val_t db_vals[NR_KEYS];
 
-	str tmp, corrtmp;
+	str tmp, corrtmp = {NULL, 0};
 	int ii = 0;
 	int ret = 0;
 	int counter = 0;
@@ -2056,7 +2057,7 @@ int receive_logging_json_msg(char * buf, unsigned int 
         struct timezone tz;    
         time_t epoch_time_as_time_t;
         
-	str tmp, corrtmp, table;
+	str tmp, corrtmp = {NULL, 0}, table;
 	_capture_mode_data_t *c = NULL;
 
 	c = capture_def;
